package com.springdemo.spring5.AOP.aopanno;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/27 16:53
 * Description:
 * Version: V1.0
 */
@Component
@Aspect
@Order(1)
public class PersonProxy {

    @Before(value = "execution(* com.springdemo.spring5.AOP.aopanno.User.add(..))")
    public void afterReturning(){
        System.out.println("PersonProxyBefore...");
    }
}
